<script setup>

</script>

<template>
  <div class="nav">
    <div class="logo">
      VZ
    </div>
    <div class="menu">
      <nav_button>
        <span>首页</span>
      </nav_button>
      <nav_button>
        <span>课程</span>
      </nav_button>
      <nav_button>
        <span>竞赛</span>
      </nav_button>
      <nav_button>
        <span>团队</span>
      </nav_button>
      <nav_button>
        <span>报名</span>
      </nav_button>
    </div>
  </div>
</template>

<style scoped>
.nav {
    padding-top: 15px;
    padding-left: 80px;
    padding-right: 100px;
    padding-bottom: 15px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    display: flex;
    box-sizing: border-box;
  }

  .logo {
    font-weight: bolder;
    font-family: 'Arial', sans-serif;
    font-size: 4.5rem;
    color: rgb(236, 0, 0);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    width: 100px;
    align-items: center;
    justify-items: center;
  }
  
  .menu {
    display: inline-block;
    position: absolute;
    right: 50px;
    align-items: center;
    justify-content: center;
    height: 100px;
  }

  nav_button {
    display: inline-block;
    border-radius: 4px;
    border: none;
    color: #000000;
    text-align: center;
    font-size: 1rem;
    padding: 16px;
    width: 50px;
    font-weight: bold;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
  }

  nav_button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
  }

  nav_button span:after {
    content: '»';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -15px;
    transition: 0.5s;
  }

  nav_button:hover span {
    padding-right: 15px;
  }

  nav_button:hover span:after {
    opacity: 1;
    right: 0;
  }
</style>
